#pragma once

class CCubeMapping
{
protected:
	LPD3DXEFFECT m_Effect;
	LPDIRECT3DCUBETEXTURE9 m_CubeTexture;
	CEasyMesh m_EnvMesh;
	LPD3DXMESH m_Teapot;

	CEasyMesh m_PlaneMesh;
	ID3DXRenderToEnvMap* m_RenderToCube;

public:
	CCubeMapping():m_EnvMesh(false),m_PlaneMesh(false){}
	void Init(LPDIRECT3DDEVICE9 _Device);
	void Render(CEasyRender* _Render);
};